package app.routing;

import app.domain.geojson.GeoPointDTO;

import java.util.Collections;
import java.util.List;

class VertexQueryResponse implements RoutingController.Response {
    private int code;
    private String msg;
    /** SRID: Spatial Reference System Identifier */
    private int srid;
    private List<GeoPointDTO> geometryList;

    public int getSrid() {
        return srid;
    }

    public void setSrid(int srid) {
        this.srid = srid;
    }

    public List<GeoPointDTO> getGeometryList() {
        return geometryList;
    }

    public void setGeometryList(List<GeoPointDTO> geometryList) {
        this.geometryList = geometryList;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public void setCode(int code) {
        this.code = code;
    }

    @Override
    public String getMsg() {
        return msg;
    }

    @Override
    public void setMsg(String msg) {
        this.msg = msg;
    }

    public VertexQueryResponse(int code, String msg, int srid, List<GeoPointDTO> geometryList) {
        this.code = code;
        this.msg = msg;
        this.srid = srid;
        this.geometryList = geometryList;
    }

    public VertexQueryResponse(int code, String msg) {
        this.code = code;
        this.msg = msg;
        this.srid = 0;
        this.geometryList = Collections.emptyList();
    }
}
